package semafori;

public class Receiver extends Thread {

	private MailBox m;

	public Receiver(MailBox m, String name) {
		super(name);
		this.m = m;
	}

	public void run() {
		for (int i = 0; i < 20; i++) {
			int value = m.get();
		}
	}

}
